﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Common;
using log4net;
using SqlSugar;
using AutoFacUtils;
using CashFlow.Admin.Def;
using CashFlow.Db.DAL;
using CashFlow.Db.Entity;
using CashFlow.Db.Repository;
using CashFlow.Admin.Service;

namespace CashFlow.Admin.Service.Implement
{
    public class FeeService : Service<FeeEntity>, IFeeService
    {
        private IFeeRepository GetFeeRepository() { return AutoFacHelper.Get<IFeeRepository>(); }

        public IList<FeeAndUserInfoView> QueryByUserId(int userId)
        {
            return GetFeeRepository().QueryByUserId(userId);
        }
    }
}
